Polygon2
Represents a polygon in 2D space defined by a list of vertices.
The polygon is defined by its vertices in order (either clockwise or counterclockwise). The last vertex is implicitly connected to the first vertex to close the polygon.
Properties
The precision used for geometric computations, defaulting to DEFAULT_DOUBLE_EQUIVALENCE.
Returns the number of vertices in the polygon.
Functions
Computes the axis-aligned bounding box of the polygon.
Computes the convex hull of this polygon's vertices using the Quickhull2 algorithm.
Returns the number of dimensions of the spatial object.
Returns true if any value in the spatial is infinite.
Determines the orientation of the polygon based on the sign of its area.
Computes the signed area of the polygon.
Transforms the polygon by applying a transformation to all vertices.